package com.nanmeishu.infrastructure.file.store.entity;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 文件上传key
 */
@Component
@ConfigurationProperties(prefix = "upload")
public class UploadKey {

    public static String accessKey;
    public static String secretKey ;
    public static String bucket;
    public static String url;

    public void setAccessKey(String accessKey) {
        UploadKey.accessKey = accessKey;
    }

    public void setSecretKey(String secretKey) {
        UploadKey.secretKey = secretKey;
    }

    public void setBucket(String bucket) {
        UploadKey.bucket = bucket;
    }

    public void setUrl(String url) {
        UploadKey.url = url;
    }
}
